import request from "@/utils/request";
export function fetchList(params) {
  return request({
    url: "/qsg/gatewayinfo/list",
    method: "get",
    params: params,
  });
}

export function createGatewayinfo(data) {
  return request({
    url: "/qsg/gatewayinfo/create",
    method: "post",
    data: data,
  });
}

export function deleteGatewayinfo(id) {
  return request({
    url: "/qsg/gatewayinfo/delete/" + id,
    method: "get",
  });
}

export function getGatewayinfo(id) {
  return request({
    url: "/qsg/gatewayinfo/" + id,
    method: "get",
  });
}

export function updateGatewayinfo(id, data) {
  return request({
    url: "/qsg/gatewayinfo/update/" + id,
    method: "post",
    data: data,
  });
}
